CXX = g++
CFLAGS = -std=c++17 -O2 -Wall -g 

TARGET = server
OBJS = mywebserver/Log/*.cpp mywebserver/Mysql/*.cpp mywebserver/timer/*.cpp \
       mywebserver/http/*.cpp mywebserver/webserver/*.cpp \
       mywebserver/Buffer/*.cpp mywebserver/main.cpp mywebserver/BlockQueue/*.cpp \
	mywebserver/Epoll/*.cpp mywebserver/Socket/*.cpp 


all: $(OBJS)
	$(CXX) $(CFLAGS) $(OBJS) -o $(TARGET) -lpthread -lmysqlclient

clean:
	rm -rf  $(TARGET)




